<template>
  <div>
    <p>this is a button</p>
    <van-button type="primary" @click="login">click me</van-button>
  </div>
</template>

<script setup lang="ts">
import { ref } from 'vue'
import { Wby_login } from '../request/api'
const nowToken = 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdWQiOlsiMzAyMTAwNTE5MCIsIjEiXSwiZXhwIjoxNjY2OTM1NDIyfQ.64tjtOA-S0XfzVsmb4HxkFbmvzpQOcXxZkbKpr1wUIk';
const login = () => {
  Wby_login(nowToken).then((res) => {
    console.log(res);
  })
}
</script>

<style scoped>

</style>
